package tk.deep.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * Created by boot on 8/27/15.
 */
@WebFilter(value = {"/*"})
public class AsynFilter implements Filter {
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("init web filter(using @WebFilter) now...");
    }

    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        System.out.println("doFilter(using @WebFilter):");
        chain.doFilter(request, response);
        System.out.println("end of do filter(using @WebFilter)");
    }

    public void destroy() {

    }
}
